package day20;

import java.io.File;
import java.io.IOException;

public class TestFile {
	public static void main(String[] args) throws IOException {
		File f = new File("1.txt");
		f.createNewFile();
		//f.delete();
		File dir = new File("dir/dir1");
		//dir.mkdir();
		dir.delete();
		dir.mkdirs();
		System.out.println(f.exists());
		System.out.println(f.getName());
		System.out.println(dir.getParent());
		System.out.println(dir.getPath());
		System.out.println(dir.getAbsolutePath());
		File f1 = new File("D:\\1.txt");//"/home/sd0807/.."
		f1.createNewFile();
	}
}
